package cn.wcy.design_patterns.creationtype01.builder03.demo2;

// 客户端代码
public class Client {
    public static void main(String[] args) {
        ComputerBuilder gamingBuilder = new GamingComputerBuilder();
        Director director = new Director(gamingBuilder);
        
        director.constructComputer();
        Computer gamingComputer = director.getComputer();
        
        System.out.println("Gaming Computer Configuration:");
        System.out.println("CPU: " + gamingComputer.getCPU());
        System.out.println("Memory: " + gamingComputer.getMemory());
        System.out.println("Hard Drive: " + gamingComputer.getHardDrive());
    }
}